<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<% 
		String[] URIElements = request.getRequestURI().split("/");
		String pageName = URIElements[URIElements.length-1].split("\\.")[0];
	%>
	<title><%= pageName %></title>
	<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
	<script type="text/javascript" src="scripts.js"></script>
	<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<noscript><p>WARNING: This site works best with JavaScript <em>enabled</em>.</p></noscript>
<div id="header">
	<h1><%= pageName %></h1>
	<span id="logoutControl">
		Hello <%= request.getSession(true).getAttribute("LoginName") %>! <a href="/skiryanoandspuzir/Entry?Logout=Logout">Logout</a>
	</span>
</div>
<div id="functions">
	<a href="/skiryanoandspuzir/Home">Home</a> <a href="/skiryanoandspuzir/Courses">Courses</a>
	<%if (request.getSession(true).getAttribute("isAdmin").equals(true)) {%> 	
		<a href="/skiryanoandspuzir/Users">Users</a>
	<%}else{ %>
		<a href="/skiryanoandspuzir/Calendar">Calendar</a>
	<%} %>
		<a href="/skiryanoandspuzir/Search">Search Courses</a>
</div>